import * as mockjs from 'mockjs';
var template = mockjs.mock({
    'info':{//生成10条这样的数据
     'id|+1': 1,    // 属性值自动加 1，初始值为88
     'TotalNumberxt|+1': 33,
     'QuotationRatio|1':'1:18',//cid:'SM00000001'
     'TotalPrice': () => `¥${mockjs.Random.float(223.01, 1000.00, 2, 2)}`,
     'PreferentialPrices': () => `¥${mockjs.Random.float(73.01, 100.00, 2, 2)}`,
     'QuotationDepartment':`@pick(['销售部', '研发部', '市场部'])`,
     'Quotationer':`@cname`,
     'QuotationTime':()=> `${mockjs.Random.date('yyyy-MM-dd HH:mm:ss')}`,
     'ReviewTime':()=> `${mockjs.Random.date('yyyy-MM-dd HH:mm:ss')}`,
    }
 });
 const {info} = template

 console.log('[INFO]',info)
export default()=>{
    return{
        idProperty:'id',
        data:{
           ...info
        }
    }
}